<template>
	<view class="box" :style="{'padding-top':systemHeight+28.5+'px'}">
		<view class="head">
			<image class="back" src="/static/img/back.png" @click="back"></image>
			<view class="title">Forgot password</view>
			<view class="right"></view>
		</view>
		<view class="small_title">Mobile Number/Email</view>
		<input class="inpu" placeholder="Enter your phone number/email" />
		<view class="small_title">Old password</view>
		<input class="inpu" placeholder="Enter Old password" />
		<view class="small_title">New password</view>
		<input class="inpu" placeholder="Enter New password" />
		<view class="text">If you forget your old password, please contact<text>customer</text>service for assistance
		</view>
		<view class="save">Save</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				systemHeight: null
			}
		},
		created() {
			this.systemHeight = uni.getSystemInfoSync().statusBarHeight
		},
		methods: {
			back() {
				uni.navigateBack()
			}
		}
	}
</script>

<style>
	.box {
		position: fixed;
		width: 100%;
		height: 100vh;
	}

	.head {
		margin: 0rpx auto 57rpx;
		width: 92%;
		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	.back {
		width: 20rpx;
		height: 36rpx;
	}

	.title {
		font-family: Mont;
		font-weight: bold;
		font-size: 32rpx;
	}

	.right {
		width: 20rpx;
	}

	.small_title {
		width: 92%;
		margin: 0rpx auto 25rpx;
		font-family: Mont;
		font-weight: 600;
		font-size: 28rpx;
	}

	.inpu {
		box-sizing: border-box;
		width: 92%;
		margin: 0rpx auto 40rpx;
		padding-left: 34rpx;
		background: #F4F4F4;
		border-radius: 30rpx;
		height: 92rpx;
	}

	.text {
		width: 626rpx;
		margin-left: 30rpx;
		font-family: Mont;
		font-weight: 500;
		font-size: 26rpx;
		color: #040404;
		white-space: pre-wrap;
		word-wrap: break-word;
	}

	.text text {
		color: #34BA78;
		margin: 0rpx 10rpx;
	}

	.save {
		position: absolute;
		bottom: 190rpx;
		left: 50%;
		transform: translate(-50%, 0);
		width: 690rpx;
		height: 92rpx;
		background: #34BA78;
		border-radius: 46rpx;
		font-family: Mont;
		font-weight: bold;
		font-size: 30rpx;
		color: white;
		line-height: 92rpx;
		text-align: center;
	}
</style>